import request from './request';

export const fetchSWiper = ()=> {
    return request.get('/product/getBanners');
};
export const fetchProdcutList = (prams ={})=> {
    return request.get('/product/list', { params: prams });
};
export const fetchCategoryAll = ()=> {
    return request.get('/category/all');
};
export const fetchCategorList = (prams ={})=> {
    return request.get('/product/list', { params: prams });
};


export const fetchCartAll = ()=> {
    return request.get('/cart/all');
};
export const fetchCartUpdateNum = (prams ={})=> {
    return request.post('/cart/updateNum', prams);
};

